Why is ServerVariables["HTTP_REFERER"] skipping a page?

Posted by Aaron on Stack Overflow See other posts from Stack Overflow or by Aaron
Published on 2010-04-07T14:36:06Z Indexed on 2010/04/07 14:53 UTC
Read the original article Hit count: 168

Filed under:
|
|
|
|

Here is my situation:

Page1.aspx redirects to Page2.aspx which does some processing (does not display to the user) and then redirects to Page3.aspx which checks the ServerVariables["HTTP_REFERER"] or Request.UrlReferrer.

I understand that the referring information can sometimes be blank and can't be entirely relied upon; however the ServerVariables["HTTP_REFERER"] or Request.UrlReferrer on Page3.aspx is showing Page1.aspx instead of Page2.aspx which I would have expected.

Does the referring information only get set if the page displays to the user?

Redirecting is done using Response.Redirect in order to change the URL in the address bar of the browser.

© Stack Overflow or respective owner

Related posts about http

Related posts about html